package com.bwie.controller;
import com.bwie.pojo.Group;
import com.bwie.service.GroupService;
import com.bwie.service.Impl.GroupServiceImpl;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_group)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/prod/group")
public class GroupController {
/**
* 服务对象
*/
    @Autowired
    private GroupService groupService;

    /**
     * 参与拼团
     * @param pageInfoVo
     * @return
     */
    @PostMapping(value = "/getGroupList")
    public R getGroupList(
            @RequestBody PageInfoVo pageInfoVo
            ){
        return groupService.getGroupList(pageInfoVo);
    }
}
